6. Sequence Diagrams

Return to TOC

Sequence Diagram


Class A tells class B to doTwo, which means it is class B that has the implementation for doTwo
The rectangle coming out of the tip (activation boxes; focus of control) of doOne contains the arrows for doTwo and doThree, so the resulting Java code is

Note the colon on the left of the class is important: it is in the format Instance:Class, so we have a myB instance of the B class
dotten line going right indicate a new object being created, and the object box is on the end